class AnkerMatch  {
  String lpn;
  bool batchFlag;
  List<AnkerMatchItem> batchNoList;

  AnkerMatch({
    this.lpn,
    this.batchFlag,
    this.batchNoList,
  });

  factory AnkerMatch.fromJson(Map<String, dynamic> json) {
    return AnkerMatch(
      lpn: json["lpn"],
      batchFlag: json["batchFlag"].toLowerCase() == 'true',
      batchNoList: json['batchNoList'] == null ? null : (new List<dynamic>.from(json['batchNoList']).map((userJson) => AnkerMatchItem.fromJson(userJson)).toList()),
    );
  }
//

}

class AnkerMatchItem {
  int id;
  String lpn;
  String batchNo;
  int qty;

  AnkerMatchItem({
    this.id,
    this.lpn,
    this.batchNo,
    this.qty,
  });

  factory AnkerMatchItem.fromJson(Map<String, dynamic> json) {
    return AnkerMatchItem(
      id: json["id"],
      lpn: json["lpn"],
      batchNo: json["batchNo"],
      qty: json["qty"],
    );
  }
}

class AnkerMatchSubmit{
  String lpn;
  String batchNo;

  Map<String, dynamic> toJson() {
    return {
      "lpn": this.lpn,
      "batchNo": this.batchNo,
    };
  }
}